<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <table border="1">
        <thead>
            <tr>
                <th>ID</th>
                <th>姓名</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1</td>
                <td>吴佩奇</td>
                <td>
                    <input type="button" value="删除">
                </td>
            </tr>
            <tr>
                <td>1</td>
                <td>吴佩奇</td>
                <td>
                    <input type="button" value="删除">
                </td>
            </tr>
            <tr>
                <td>1</td>
                <td>吴佩奇</td>
                <td>
                    <input type="button" value="删除">
                </td>
            </tr>
        </tbody>
    </table>
    <script src="jquery-3.7.1.min.js"></script>
    <script>
        $(function(){
            $("input").click(function(){
                // 删除当前行的数据
                $(this).parent().parent().remove()
            });
        });
    </script>
</body>
</html>